

	var setFormResult = window.setFormResult = function (data) {
        //console.log(data);
        layer.closeAll();
        if(data.status != 10000) {
            layer.alert(data.errmsg, {icon: 5});
        } else {
            layer.confirm('操作成功！', {icon: 6, title:'系统提示', btn: '查看列表'}, function(index){
            	top.location.href = $('#form_update').attr('durl');
                //parent.location.reload(true);
            })/*,function(index){
                location.reload(true); //继续添加
            };*/
        }
    }
$(function(){
    $('#form_update').on('valid.form', function(e, form){
        layer.load();
        form.submit();
    });
});
